package com.silence.qhyh.webpro.mvp.ui.activity.mine;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.allen.library.SuperButton;
import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.silence.qhyh.webpro.R;
import com.silence.qhyh.webpro.mvp.ui.activity.MainActivity;
import com.vondear.rxtool.RxActivityTool;
import com.vondear.rxui.view.RxTitle;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author silence
 * 支付成功
 */
public class PaySuccessActivity extends BaseActivity {

    @BindView(R.id.rx_title)
    RxTitle rxTitle;
    @BindView(R.id.tv_pay_success_tip)
    TextView tvPaySuccessTip;
    @BindView(R.id.sb_skip)
    SuperButton sbSkip;
    @BindView(R.id.sb_complete_address_info)
    SuperButton sbCompleteAddressInfo;

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public int initView(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_pay_success;
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {
        rxTitle.setLeftFinish(this);
    }

    @OnClick({R.id.sb_skip, R.id.sb_complete_address_info})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.sb_skip:
                RxActivityTool.skipActivity(this, MainActivity.class);
                break;
            case R.id.sb_complete_address_info:
                RxActivityTool.skipActivity(this, EditAddressActivity.class);
                break;
            default:
                break;
        }
    }
}
